import { h } from 'vue'
import { ElNotification } from 'element-plus'

export default function showCoin({ count }) {
  ElNotification({
    message: h(
      'span',
      { style: 'font-size: 24px' },
      count === 0 || count === '0'
        ? `太可惜了小朋友，本关你一共获得了${count}个金币，再接再厉哦！`
        : `小朋友你太棒啦，本关你一共获得了${count}个金币！`
    ),
    type: 'success',
    showClose: false
  })
}
